<template>
    <div class="text-20 p-24">
        <PageHeader title="接口测试"/>
        <el-button type="primary" @click="addMember">新增会员</el-button>
    </div>
</template>

<script setup lang="ts">
import { AddMember } from '@api/module/apiTest'
import { ElMessages } from '@utils/methods'
import PageHeader from '@/components/PageHeader/index.vue'

// 新增会员
const addMember = () => {
    AddMember({
        username: 'Sawano',
        userAvatar: 'http://www.jsjserve.top/public/images/member-management-system/1681749436943.jpg',
        gender: 0,
        userPhone: '19108054929',
        memberID: '620102200308227003',
        birthday: '2003-08-22',
        memberSource: '四川省',
        tagList: ['年轻', '愿望', '火锅', '个性', '吃肉']
    }).then(({ success }) => {
        if (success) {
            ElMessages.success('新增成功！')
        } else {
            ElMessages.success('新增失败！')
        }
    })
}
</script>
<style lang="less" scoped>

</style>
